import { NetWork_Post, NetWork_Get } from './commonServer'

function getTodayLineTask(bodydata, callback) {
  let netapi = 'getTodayLineTask',
    reqError = {
      error: {
        code: '-1',
        msg: '获取数据失败'
      }
    }
  NetWork_Post(netapi, bodydata, callback, reqError)
}

function getLineAdvTask(bodydata, callback) {
  let netapi = 'getLineAdvTask',
    reqError = {
      error: {
        code: '-1',
        msg: '获取数据失败'
      }
    }
  NetWork_Post(netapi, bodydata, callback, reqError)
}

function submitLineAdvTask(bodydata, callback) {
  let netapi = 'submitLineAdvTask',
    reqError = {
      error: {
        code: '-1',
        msg: '数据提交失败'
      }
    }
  NetWork_Post(netapi, bodydata, callback, reqError)
}

export { getTodayLineTask, getLineAdvTask, submitLineAdvTask }
